const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");

module.exports = {
  productionSourceMap: false,
  devServer: {
    proxy: "http://localhost:5001"
  },
  configureWebpack: {
    plugins: [
      new MonacoWebpackPlugin({
        // available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
        languages: ["xml", "html", "json"],
        features: [
          "accessibilityHelp",
          "bracketMatching",
          "caretOperations",
          "clipboard",
          "codeAction",
          "codelens",
          "colorDetector",
          "comment",
          "contextmenu",
          "coreCommands",
          "cursorUndo",
          "dnd",
          "folding",
          "fontZoom",
          "format",
          "hover",
          "iPadShowKeyboard",
          "inPlaceReplace",
          "inspectTokens",
          "linesOperations",
          "links",
          "multicursor",
          "parameterHints",
          "quickCommand",
          "quickOutline",
          "referenceSearch",
          "rename",
          "smartSelect",
          "snippets",
          "suggest",
          "toggleHighContrast",
          "toggleTabFocusMode",
          "transpose",
          "wordHighlighter",
          "wordOperations",
          "wordPartOperations"
        ]
      })
    ]
  }
};
